package comand.calulator;
@Deprecated
public class Calc {

    private int total=0;
    public void operation(char operator,int value) {
        switch(operator) {
            case '+':total+=value;break;
            case '-':total-=value;break;
            case '*':total*=value;break;
            case '/':total/=value;break;
        }
        System.out.println(operator+" "+value+" ="+total);
    }
}